import request from './request';
import getParams from '@/tools/getParams.js';

export const orderFindList = (params) => {
    const str = getParams(params)
    const url = `/order/findList${str}`
    return request({
        url: url,
        method: 'get',
        data: {}
    })
}
export const orderAdd = (params) => {
    return request({
        url: '/order/add',
        method: 'post',
        data: params
    })
}
export const orderUpdate = (params) => {
    return request({
        url: '/order/update',
        method: 'post',
        data: params
    })
}
export const orderDelete = (params) => {
    return request({
        url: '/order/delete',
        method: 'post',
        data: params
    })
}
export const total = (params) => {
    const str = getParams(params)
    const url = `/order/total${str}`
    return request({
        url: url,
        method: 'get',
        data: params
    })
}